package com.gotobject.junit.internal.runners.model;

/**
 * Captured Result from a load explosion; either normal load testing,
 * response testing, or throughput testing..
 */
public final class Measure {
    private	final long	maxElapsedTime;
    private	final long	minElapsedTime;
    private	final long	avgElapsedTime;

    public Measure(long maxElapsedTime, long minElapsedTime, long avgElapsedTime){
        this.maxElapsedTime = maxElapsedTime;
        this.minElapsedTime = minElapsedTime;
        this.avgElapsedTime = avgElapsedTime;
    }

    public Measure(Measure copy){
        this(copy.getMaxElapsedTime(), copy.getMinElapsedTime(), copy.getAvgElapsedTime());
    }


    public long getMaxElapsedTime() {
        return maxElapsedTime;
    }


    public long getMinElapsedTime() {
        return minElapsedTime;
    }


    public long getAvgElapsedTime() {
        return avgElapsedTime;
    }
}
